package com.sdppf.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class Requirement {
	private long requirementId;
	private String requirementTitle;
	private String requirementDesc;
	private String level;
	private String status;
	private Date startTime;
	private Date endTime;
	private String creater;
	private Project project;
	public void setRequirementId(long requirementId) {
		this.requirementId = requirementId;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long getRequirementId() {
		return requirementId;
	}
	public void setRequirementTitle(String requirementTitle) {
		this.requirementTitle = requirementTitle;
	}
	public String getRequirementTitle() {
		return requirementTitle;
	}
	public void setRequirementDesc(String requirementDesc) {
		this.requirementDesc = requirementDesc;
	}
	public String getRequirementDesc() {
		return requirementDesc;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getLevel() {
		return level;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	@ManyToOne
	public Project getProject() {
		return project;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getCreater() {
		return creater;
	}
}
